package cn.brian.modular.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Tolerate;


/**
 * 【A07_用户表】实体类
 * 
 * @author 黄景华
 * @date 2018-03-21 04:24:27
 */
@TableName(value = "T_SYS_USER")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@ToString
public class SysUser {

	private static final long serialVersionUID = 1L;

	@Tolerate
	public SysUser(){
	}
	@TableId(value = "USER_ID", type = IdType.INPUT)
	private String userId; // 用户ID

	@TableField(value = "USER_NAME")
	private String userName; // 用户姓名
	
	@TableField(value = "LOGIN_NAME")
	private String loginName; // 登陆名

	@TableField(value = "PASSWORD")
	private String password; // 密码

	@TableField(value = "SEX")
	private String sex; // 性别

	@TableField(value = "TEL")
	private String tel; // 手机号码

	@TableField(value = "AGE")
	private Integer age; // 年龄

	@TableField(value = "HEAD_FILE_ID")
	private String headFileId; // 头像文件ID

	@TableField(value = "ORG_ID")
	private String orgId; // 所属机构ID

	@TableField(value = "ROLE_ID")
	private String roleId; // 所属角色ID

	@TableField(value = "STATUS")
	private String status; // 用户状态

	@TableField(value = "SORT_NO")
	private Integer sortNo; // 排序号

	@TableField(value = "REMARK")
	private String remark; // 备注


	@TableField(exist = false)
	private String roleName;

	@TableField(exist = false)
	private String orgName;

	@TableField(exist = false)
	private String orgLevelCode;

}
